import requests

cookies = {
    'aQQ_ajkguid': '4905883E-3990-4143-8FC7-51C29DD142D7',
    'sessid': 'FD2029E0-A7BB-4060-94F8-4D7AFF37B485',
    'ajk-appVersion': '',
    'ctid': '26',
    'fzq_h': '03d7e7ae2720240549133b752bbda2b3_1761960162245_2bfb45327198495ab7485ec4966ed508_2074141358',
    'fzq_js_anjuke_ershoufang_m': '5d8ac5ac9740520d521e2353f98a4c6a_1761960160589_27',
    'id58': 'CkwAUmkFYORnu7zkTIVkAg==',
    'xxzlclientid': '4f94a025-2dc8-407f-9319-1761960162641',
    'xxzlxxid': 'pfmxjSks9Jiz49ycMzYVPl74GWFFGds8bCaJ2EuJtlTVj1FAtm7m62Bbf8hGKz1kzdgD',
    'twe': '2',
    'wmda_uuid': '998f4e38349ed364537d1668a147c955',
    'wmda_new_uuid': '1',
    'wmda_session_id_6289197098934': '1761967500371-664f1900-8d11-c6fe',
    'obtain_by': '2',
    '58tj_uuid': '6d30c7be-35db-45bd-b854-470b29a838de',
    'init_refer': '',
    'new_uv': '1',
    'app_cv': 'unknown',
    'new_session': '0',
    'wmda_session_id_8146401978551': '1761968281485-e4596402-718e-fb17',
    'wmda_visited_projects': '%3B6289197098934%3B8146401978551',
    'xxzlbbid': 'pfmbM3wxMDMyM3wxLjExLjB8MTc2MTk2ODI4MTk2Mzg2ODI0OHwvWkt2V3dtNDdBSkJsM1JuUSs0UUM4TW5XdVRwdnhDVzhXbGFaQk5GZXhBPXx8',
}

headers = {
    'accept': 'application/json, text/plain, */*',
    'accept-language': 'zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7',
    'priority': 'u=1, i',
    'referer': 'https://m.anjuke.com/zz/xinfang/?from=TW_HOME',
    'sec-ch-ua': '"Chromium";v="142", "Google Chrome";v="142", "Not_A Brand";v="99"',
    'sec-ch-ua-mobile': '?0',
    'sec-ch-ua-platform': '"Windows"',
    'sec-fetch-dest': 'empty',
    'sec-fetch-mode': 'cors',
    'sec-fetch-site': 'same-origin',
    'sw8': '1-NTdjMzk1MzBlNzE4NGRiNjk3MGY5YTIxYTRjYjI5MWI=-NWQ1ZDQ5YTYzYWIxNGNiMzk1OTUxNjBhM2M2NTlmOWE=-0-OTc=-aHR0cHM6Ly9tLmFuanVrZS5jb20=-L3hpbmZhbmcvYXBpL2xvdXBhbi9zaW1pbGFyaXRpZXM=-bS5hbmp1a2UuY29t-0',
    'sw8-correlation': 'c291cmNl:YmVpZG91',
    'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36',
    # 'cookie': 'aQQ_ajkguid=4905883E-3990-4143-8FC7-51C29DD142D7; sessid=FD2029E0-A7BB-4060-94F8-4D7AFF37B485; ajk-appVersion=; ctid=26; fzq_h=03d7e7ae2720240549133b752bbda2b3_1761960162245_2bfb45327198495ab7485ec4966ed508_2074141358; fzq_js_anjuke_ershoufang_m=5d8ac5ac9740520d521e2353f98a4c6a_1761960160589_27; id58=CkwAUmkFYORnu7zkTIVkAg==; xxzlclientid=4f94a025-2dc8-407f-9319-1761960162641; xxzlxxid=pfmxjSks9Jiz49ycMzYVPl74GWFFGds8bCaJ2EuJtlTVj1FAtm7m62Bbf8hGKz1kzdgD; twe=2; wmda_uuid=998f4e38349ed364537d1668a147c955; wmda_new_uuid=1; wmda_session_id_6289197098934=1761967500371-664f1900-8d11-c6fe; obtain_by=2; 58tj_uuid=6d30c7be-35db-45bd-b854-470b29a838de; init_refer=; new_uv=1; app_cv=unknown; new_session=0; wmda_session_id_8146401978551=1761968281485-e4596402-718e-fb17; wmda_visited_projects=%3B6289197098934%3B8146401978551; xxzlbbid=pfmbM3wxMDMyM3wxLjExLjB8MTc2MTk2ODI4MTk2Mzg2ODI0OHwvWkt2V3dtNDdBSkJsM1JuUSs0UUM4TW5XdVRwdnhDVzhXbGFaQk5GZXhBPXx8',
}

response = requests.get(
    'https://m.anjuke.com/xinfang/api/loupan/similarities?client_source=2&cid=26&page=2&is_homeIndex=1&pvid=9fae1381-b8ac-411a-b3ad-2fcd405025cc&history_url=https:%2F%2Fm.anjuke.com%2Fzz%2Fxinfang%2F%3Ffrom%3DTW_HOME',
    cookies=cookies,
    headers=headers,
)

print(response.json())



